<?php
include "phpQuery.php";
include "QueryList.php";
use QL\QueryList;
$url='http://top.baidu.com/?fr=ahd_card';
//echo $url;
$rules=[
    'title'=>['#hot-list>li>.list-title','text'],
];
$data=QueryList::Query($url,$rules,'','utf-8')->data;
print_r($data);